package ru.sushka.lunch.factory;

import ru.sushka.lunch.dao.AbstractDao;
import ru.sushka.lunch.dao.psql.*;
import ru.sushka.lunch.enitiy.Course;
import ru.sushka.lunch.enitiy.Customer;
import ru.sushka.lunch.enitiy.MenuItem;
import ru.sushka.lunch.enitiy.Order;

public class PsqlDaoFactory implements AbstractFactory {

    @Override
    public AbstractDao<Order> getOrderDao() {
        return new PsqlOrderDao();
    }

    @Override
    public AbstractDao<Customer> getCustomerDao() {
        return new PsqlCustomerDao();
    }

    @Override
    public AbstractDao<Course> getCourseDao() {
        return new PsqlCourseDao();
    }

    @Override
    public AbstractDao<MenuItem> getMenuItemDao() {
        return new PsqlMenuItemDao();
    }

}
